<!--违规处理情况查询-->
<template>
<div class="public-common">
    <div class="public-title">请选择违规查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>
            <el-col :span="5">
                <el-form-item label="车牌号">
                    <el-input v-model="form.carzl1"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="所属公司">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl2">
                    	<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="开始时间">
                    <el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.carzl3" type="date"></el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="驾驶员违规次数" class="cylab">
                    <el-input v-model="form.carzl4" ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="资格证号">
                    <el-input v-model="form.carzl5" ></el-input>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="5">
                <el-form-item label="驾驶员姓名">
                    <el-input v-model="form.carzl6" ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="违规类型">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl7">
                    	<el-option v-for="(v,i) in item3" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="截止时间">
                    <el-date-picker style="width: 100%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.carzl8" type="date"></el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="车辆违章次数" class="cylab">
                    <el-input v-model="form.carzl9" ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="身份证号">
                    <el-input v-model="form.carzl10" ></el-input>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="5">
                <el-form-item label="暂扣单号">
                    <el-input v-model="form.carzl11" ></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="5">
                <el-form-item label="检查部门">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl12">
                    	<el-option v-for="(v,i) in item4" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="检查地点">
                    <el-input v-model="form.carzl13" ></el-input>
                </el-form-item>
            </el-col>
        </el-row>
            <el-row>
                <el-col :span="24">
                    <el-button type="primary" style="margin-left:10px;">搜索</el-button>
                    <el-button type="primary">导出Excel</el-button>
                </el-col>
            </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">查询违规结果列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="违规编号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="暂扣单号" prop="a2">
            </el-table-column>
            <el-table-column
                label="违规日期" prop="a3">
            </el-table-column>
            <el-table-column
                label="车牌号" prop="a4">
            </el-table-column>
            <el-table-column
                label="驾驶人姓名" prop="a5">
            </el-table-column>
            <el-table-column
                label="所属公司" prop="a6">
            </el-table-column>
            <el-table-column
                label="检查地点" prop="a7">
            </el-table-column>
            <el-table-column
                label="检查人" prop="a8">
            </el-table-column>
            <el-table-column
                label="违规类型" prop="a9">
            </el-table-column>
            <el-table-column
                label="罚款金额" prop="a10">
            </el-table-column>
            <el-table-column
                label="处罚日期" prop="a11">
            </el-table-column>
            <el-table-column
                label="明细查看" prop="a12">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  carzl1:'',
                  carzl2:'',
                  carzl3:'',
                  carzl4:'',
                  carzl5:'',
                  carzl6:'',
                  carzl7:'',
                  carzl8:'',
                  carzl9:'',
                  carzl10:'',
                  carzl11:'',
                  carzl12:'',
                  carzl13:'',

              },
              tabledata:[
                {
                    a1: 'TS839201',
                    a2: 'SD898939',
                    a3: '2018-10-10',
                    a4: '陕A09493',
                    a5: '丁能',
                    a6: '东软集团',
                    a7: '西安南站',
                    a8: '丁建国',
                    a9: '肇事',
                    a10: '￥200',
                    a11: '2019-10-10',
                    a12: '暂无',
                },
                {
                    a1: 'TS839202',
                    a2: 'SD898931',
                    a3: '2018-11-10',
                    a4: '陕A09492',
                    a5: '吴小',
                    a6: '东软集团',
                    a7: '西安南站',
                    a8: '王五牛',
                    a9: '肇事',
                    a10: '￥500',
                    a11: '2019-11-10',
                    a12: '暂无',
                },
                {
                    a1: 'TS839205',
                    a2: 'SD898935',
                    a3: '2018-11-10',
                    a4: '陕A09412',
                    a5: '蔡小于',
                    a6: '东软集团',
                    a7: '西安南站',
                    a8: '范能',
                    a9: '肇事',
                    a10: '￥800',
                    a11: '2019-10-10',
                    a12: '暂无',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },
              item:[
              	{text:'日产',value:'0'},
              	{text:'丰田',value:'1'},
              	{text:'本田',value:'2'},
              ],
              item3:[
              	{text:'全部',value:'0'},
              ],
              item4:[
              	{text:'管理处',value:'0'},
              	{text:'火车站',value:'1'},
              ],
        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
  .cylab .el-form-item__label{ width: 110px !important;}
  .cylab .el-form-item__content{ margin-left: 110px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
